package com.qiaofang.dataprocessing.stub.facade;

import com.qiaofang.common.request.DataRequest;
import com.qiaofang.common.response.CommonResponse;
import com.qiaofang.common.response.DataResultResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author QF2019
 */
@FeignClient(name = "dataprocessing",url="${feign.url.dataprocessing}")
@RequestMapping("/dataHandle")
@Api(tags = "dataHandle", description = "数据处理接口")
public interface DataHandleFacade {

    /**
     * 更新总机号码
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateCallCenterCompanyCode", method = RequestMethod.POST)
    @ApiOperation(value = "更新总机号码", notes = "更新总机号码")
    CommonResponse updateCallCenterCompanyCode(DataRequest<String> request);

    /**
     * 查询总机号码
     * @return
     */
    @RequestMapping(value = "/getCallCenterCompanyCode", method = RequestMethod.POST)
    @ApiOperation(value = "查询总机号码", notes = "查询总机号码")
    DataResultResponse<String> getCallCenterCompanyCode();
}
